package com.ld.wms.business.material.controller;


import com.ld.wms.business.material.service.SupplierService;
import com.ld.wms.business.material.vo.resp.SupplierRespVo;
import com.ld.wms.common.ResultResponse;
import com.ld.wms.common.vo.GenerateListVo;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 供应商(厂家) 前端控制器
 * </p>
 *
 * @author wangfeng
 * @since 2025-02-25
 */
@Slf4j
@Tag(name = "厂家相关接口")
@RestController
public class SupplierController {

    @Autowired
    private SupplierService supplierService;

    @GetMapping("/api/wms/supplier/getAllList")
    @Operation(summary = "厂家列表(下拉框可用)")
    public ResultResponse<GenerateListVo<SupplierRespVo>> getAllList(
    ) {
        GenerateListVo<SupplierRespVo> allList = supplierService.getAllList();
        return ResultResponse.success(allList);
    }

}

